//
//  HWFuLishangpingxiangqingTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/14.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWFuLishangpingxiangqingTableViewCell.h"

@interface HWFuLishangpingxiangqingTableViewCell()
@property(strong,nonatomic)UILabel *miaoshuLabel;
@property(strong,nonatomic)UILabel *jieshaoLabel;
//@property(strong,nonatomic) UIView *xiamianFenGexianView;

@end


@implementation HWFuLishangpingxiangqingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
        
        
    }
    
    return  self;
}



- (void)setupUI {
     
    
     self.miaoshuLabel =  [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 105, 35)];
     self.miaoshuLabel.text = @"商品名称";
     self.miaoshuLabel.textColor = RGB(51, 51, 51);
     self.miaoshuLabel.font = [UIFont systemFontOfSize:12];
     self.miaoshuLabel.textAlignment = NSTextAlignmentCenter;
     [self.contentView addSubview:self.miaoshuLabel];
    
    
    
     self.jieshaoLabel =  [[UILabel alloc]initWithFrame:CGRectMake(self.miaoshuLabel.right+10, 0, kScreenW-105-20, 35)];
     self.jieshaoLabel.text = @"Apple iphone 11";
     self.jieshaoLabel.textColor = RGB(51, 51, 51);
     self.jieshaoLabel.font = [UIFont systemFontOfSize:12];
   //  self.jieshaoLabel.textAlignment = NSTextAlignmentCenter;
     [self.contentView addSubview:self.jieshaoLabel];
    
    
    UIView *shanview = [[UIView alloc]initWithFrame:CGRectMake(10, 0, kScreenW-20, 1)];
    shanview.backgroundColor = RGB(232, 232, 242);
    [self.contentView addSubview:shanview];
    
    
    UIView *xiaxianView = [[UIView alloc]initWithFrame:CGRectMake(10,34, kScreenW-20, 1)];
    xiaxianView.backgroundColor = RGB(232, 232, 242);
    self.xiamianFenGexianView = xiaxianView;
    
    [self.contentView addSubview:xiaxianView];
    
    
    UIView *dyigexianView1 = [[UIView alloc]initWithFrame:CGRectMake(10,0,1, 35)];
      dyigexianView1.backgroundColor = RGB(232, 232, 242);
      [self.contentView addSubview:dyigexianView1];

    
    UIView *dyigexianView2 = [[UIView alloc]initWithFrame:CGRectMake(10+105,0,1, 35)];
    dyigexianView2.backgroundColor = RGB(232, 232, 242);
    [self.contentView addSubview:dyigexianView2];
    
    
    UIView *dyigexianView3 = [[UIView alloc]initWithFrame:CGRectMake(kScreenW-10,0,1, 35)];
    dyigexianView3.backgroundColor = RGB(232, 232, 242);
    [self.contentView addSubview:dyigexianView3];

    
}


@end
